package src

import (
	"fmt"

	. "starsine.cn/appTpl/cmn/defs"
	"starsine.cn/appTpl/svclog/src/db"
	"starsine.cn/appTpl/svclog/src/fe"
	"starsine.cn/appTpl/svclog/src/logproc"
	"starsine.cn/appTpl/svclog/src/svclogpubsub"
)

func Start(appCtxt *AppContext) {
	err := db.Start(appCtxt)
	if err != nil {
		panic(fmt.Sprintf("Init DB fail, err: %s", err))
	}
	svclogpubsub.Start()
	fe.Start(appCtxt)
	logproc.Start(appCtxt)
}
